package com.ailanyin.admin.modules.system.model;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.ailanyin.common.model.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 登录日志
 *
 * @author ailanyin
 * @version 1.0
 * @since 2021/10/15 0015 上午 10:00
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class SysLoginLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "序号")
    @Excel(name = "序号")
    private Long infoId;

    @ApiModelProperty(value = "用户账号")
    @Excel(name = "用户账号")
    private String userName;

    @ApiModelProperty(value = "登录状态")
    @Excel(name = "登录状态",  replace = {"成功_0", "失败_1"})
    private String status;

    @ApiModelProperty(value = "登录地址")
    @Excel(name = "登录地址")
    private String ipaddr;

    @ApiModelProperty(value = "登录地点")
    @Excel(name = "登录地点")
    private String loginLocation;

    @ApiModelProperty(value = "访问时间")
    @Excel(name = "浏览器")
    private String browser;

    @ApiModelProperty(value = "操作系统")
    @Excel(name = "操作系统")
    private String os;

    @ApiModelProperty(value = "提示消息")
    @Excel(name = "提示消息")
    private String msg;

    @ApiModelProperty(value = "访问时间")
    @Excel(name = "访问时间", format = "yyyy-MM-dd HH:mm:ss", width = 30)
    private Date loginTime;

}
